<!DOCTYPE html>
<html >
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/angular.js" ></script>
	</head>
	<body>
		<!--调度逻辑的集合-->
		<!--controller用于放置代码是桥梁-->
		<!--如下，张三是控制器的名称-->
		<script>
			var app=angular.module('test',[]);
			app.controller('张三',function($scope){
				$scope.a=12;
			})
		</script>
		<div ng-controller="张三" ng-app="test">
			a:<span>{{a}}</span>
		</div>
	
	</body>
</html>
